package com.banmao.wxnotebookserver.util;

import com.banmao.wxnotebookserver.entity.R;

import java.util.Date;

public class RFactory {

    public static <T> R success(T data) {
        R<T> tr = new R<>();
        tr.setCode(200);
        tr.setData(data);
        tr.setTimestamp(new Date());
        return tr;
    }

}
